
.shadow-box {
    box-shadow: 0 1px 20px -6px gainsboro;
    transition: all 0.3s ease;
}

.shadow-box:hover {
    box-shadow: 0 5px 10px 5px bisque;
}
.my-animation-slide-top {
    animation-name: slide-top
}

.my-animation-slide-bottom {
    animation-name: slide-bottom
}

.my-animation-hideToShow {
    animation-name: hideToShow
}

/* 上移 */
@keyframes slide-top {
    0% {
        opacity: 0;
        transform: translateY(-20%)
    }
    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

/* 下移 */
@keyframes slide-bottom {
    0% {
        opacity: 0;
        transform: translateY(20%)
    }
    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

.article-first {
    color: grey;
    border-bottom: 1px dashed lightGray;
    padding-bottom: 5px;
    margin-bottom: 50px;
}

.recent-post-container {
    max-width: 780px;
    margin: auto;
}

.recent-post-container .recent-post-item:not(:last-child) {
    margin-bottom: 40px;
}

.recent-post-item {
    height: 300px;
    position: relative;
    display: flex;
    flex-direction: row;
    user-select: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    animation: hideToShow 1s ease-in-out;
}

.recent-post-item-image {
    width: 50%;
    height: 100%;
}

.recent-post-item-image >>> .el-image__inner {
    transition: all 1s;
}

.recent-post-item-image >>> .el-image__inner:hover {
    transform: scale(1.2);
}

.leftImage {
    position: absolute;
    left: 0;
}

.rightImage {
    position: absolute;
    right: 0;
    text-align: right;
}

.recent-post-item-post {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 35px;
}

.recent-post-item-post h3 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.post-meta {
    font-size: 12px;
    color: grey;
}

.post-meta i {
    font-size: 15px;
}

.post-meta span:not(:last-child) {
    margin-right: 10px;
}

.recent-post-desc {
    font-size: 15px;
    line-height: 1.7;
    /* 超出4行就... */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.leftImage .sort-label {
    position: absolute;
    bottom: 20px;
}

.rightImage .sort-label {
    position: absolute;
    bottom: 20px;
    right: 35px;
}

.sort-label span {
    padding: 3px 10px;
    background-color: LightGray;
    border-radius: 3px;
    font-size: 14px;
    color: grey;
    transition: all 0.3s;
    cursor: pointer;
    user-select: none;
}

.sort-label span:hover {
    background-color: background;
    color: black;
}

.error-text {
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: 8px;
    color: white;
}

@media screen and (max-width: 700px) {
    .recent-post-item {
        height: 450px;
        position: unset;
        display: block;
        flex-direction: unset;
    }

    .recent-post-item-image {
        width: 100%;
        height: 200px;
    }

    .leftImage {
        position: unset;
        left: unset;
    }

    .rightImage {
        position: unset;
        right: unset;
        text-align: unset;
    }

    .recent-post-item-post {
        width: 100%;
        height: 250px;
        position: relative;
    }

    .recent-post-desc {
        -webkit-line-clamp: 3;
    }

    .leftImage .sort-label {
        position: absolute;
        bottom: 20px;
    }

    .rightImage .sort-label {
        position: absolute;
        bottom: 20px;
        right: unset;
    }
}
